package com.bandit.utils;

import java.util.ArrayList;
import java.util.List;

public class ShiroUtils {

    /**
     * 管理员
     */
    public static final String ADMIN_TAG = "admin";

    /**
     * 一般用户
     */
    public static final String NORMAL_TAG = "normal";

    /**
     * 游客
     */
    public static final String GUEST_TAG = "guest";


    public static List<String> isAdmin(){
        ArrayList<String> permList = new ArrayList<>();
        permList.add("*:*:*");
        return permList;
    }

    public static List<String> isNormal(){//普通用户只能查和发布（发布之后审核功能之后再加）
        ArrayList<String> permList = new ArrayList<>();
        permList.add("*:*:list");
        permList.add("*:*:add");
        permList.add("back:user:edit");
        return permList;
    }

    public static List<String> isGuest(){
        ArrayList<String> permList = new ArrayList<>();
        permList.add("front:*:*");
        return permList;
    }


}
